home *** CD-ROM | disk | FTP | other *** search
- Path: news.mountain.net!usenet
- From: gene_heskett@wvlink.mpl.com (Gene Heskett)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: File system access
- Date: 13 Jan 96 01:59:40 +0500
- Organization: MountainNet, Inc. Morgantown WV 800.444.1458
- Message-ID: <2369.6586T119T2041@wvlink.mpl.com>
- References: <1996Jan12.145401.22978@ludens>
- NNTP-Posting-Host: slip4.mpl.com
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- g> cs321702@student.uq.edu.au (Rod Jackson) wrote:
-
- >> Does anyone know of a way to access a file that is already 'used' by
- >> another program. [...]
-
- g> This must be a sort of hack.
- g> As I know SHARED and EXCLUSIVE file accesses have been created because
- g> of safety considerations. Just imagine that you let two programs write
- g> into the same file at the same time... And guess what the result will
- g> be. Is this rule really worth hacking?
-
- g> Genie
-
- Gene Heskett replies:
-
- Unforch, not that I know of in AmigaDos. Which BTW, I *do* consider to be a
- semi-major shortcoming of it. I have, sitting on the next table, a machine
- which can run its assembler which is generating a listing of an assembly in
- progress. I can go to another window or monitor (doesn't matter) and start
- the text lister *on that same listing file*, it will catch up with the
- assembler and play follow the leader to the end of the listing.
-
- I can also copy a transient file used by the compiler to another filename
- so that I can see if the compiler is doing what I told it to, without
- bothering the compiler. Since I'm in the process of copying said file,
- when the compiler attempts to delete it cause its done with it, the delete
- only reduces the link count, which since I have it open is still one. When
- I close out the copy, the opsys finds the link count is now zero and
- deletes it. The compilers progress is *not* held till my copy is done.
-
- These are *very handy* functions IMHO, comparable to the invention of
- sliced bread or bottles to put beer in!
-
- Once in 50 blue moons, the list maker will write to exactly the end of a
- sector, dump it to disk, and release the "lock" *on that sector* without
- first issueing a lock on the next sector. The lister then will fall by the
- generator, see an apparent eof and exit. Normally it just sleeps till the
- lock on the next sector it wants to read has been released.
-
- I'll leave it to you to guess which machine and operating system that is.
- Hint: Not PC or Mac. Normally shipped with Motorola cpu, often replaced
- with a Hitachi. Production and sales discontinued for 9 years now.
-
- Cheers
-
- /* Gene Heskett | These opinions are NOT to be */
- /* CE @ WDTV Weston/Clarksburg WV | confused with the official */
- /* <gene_heskett@wvlink.mpl.com> | WDTV managment views */
- #include <std.disclaimer>
-
-
-